package ti25;
/*
设计Student类，该类有学号，班级，姓名，宿舍号，性别，年龄属性。
设计宿舍Room类，该类有宿舍号和Student列表属性；该类最多可以保
存6位Student信息，该类有check_in方法是给学生分配宿舍，
如果Room中的学生数量超过了6位则拒绝分配，还要避免男女混住的情况；
该类有show方法是查看宿舍已经分配的学生信息，执行show方法时在电脑
桌面上创建room+宿舍号的文本文件，将学生信息写入到此文件当中，写入格式位如下：

 */
public class Test {
    public static void main(String[] args) {
        Student student = new Student(403101,"张三","计算机2班","男",18);
        Student student1 = new Student(403101,"张三","计算机2班","男",18);
        Student student2 = new Student(403101,"张三","计算机2班","男",18);
        Student student3 = new Student(403101,"张三","计算机2班","男",18);
        Student student4 = new Student(403101,"张三","计算机2班","男",18);
        Student student5 = new Student(403101,"张三","计算机2班","男",18);
        Room room = new Room(1021,student);
        room.show();

    }
}
